<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/template.xhtml">
	<ui:define name="content">

		<p:panel id="datalistPanel" styleClass="marginTop15">
			<f:facet name="header">
				<p:outputLabel id="toggler" type="text" value="Dönem Bilgileri"/>
				<p:columnToggler datasource="donemDTable" trigger="toggler" />
			</f:facet>

			<p:dataTable id="donemDTable" var="talep" value="#{taleplerimBean.list}" 
				paginator="#{taleplerimBean.list.size() > 10}" paginatorPosition="bottom"
				rows="10" resizableColumns="true">

				<p:column>
					<f:facet name="header">
						<h:outputText value="İş Numarası" /> 
					</f:facet>
					<h:outputText value="#{talep.pysProje.ad}-#{talep.id}" />
				</p:column>
				<p:column>
					<f:facet name="header">
						<h:outputText value="Başlık" />
					</f:facet>
					<h:outputText value="#{talep.ozet}" />
				</p:column>
				<p:column>
					<f:facet name="header">
						<h:outputText value="Oncelik" />
					</f:facet>
					<h:outputText value="#{talep.pysOncelik.ad}" />
				</p:column> 
				<p:column>
					<f:facet name="header">
						<h:outputText value="Oluşturan Kullanıcı" />
					</f:facet>
					<h:outputText
						value="#{talep.pysKullaniciByOlusturanKullaniciId.ad} #{talep.pysKullaniciByOlusturanKullaniciId.soyad}" />
				</p:column>
				<p:column>
					<f:facet name="header">
						<h:outputText value="Atanan Kullanıcı" />
					</f:facet>
					<h:outputText
						value="#{talep.pysKullaniciByAtananKullaniciId.ad} #{talep.pysKullaniciByAtananKullaniciId.soyad}" />
				</p:column>
				<p:column>
					<f:facet name="header">
						<h:outputText value="Talep Tipi" />
					</f:facet>
					<h:outputText value="#{talep.pysTalepTip.ad}" />
				</p:column>

				<!-- p:column style="text-align:center;">
					<f:facet name="header">
						<h:outputText value="#{kullanicibundle.lbl_baslangic_tarihi}" />
					</f:facet>
					<h:outputText value="#{donem.basTar}" converter="DateConverter" />
				</p:column>
				<p:column style="text-align:center;">
					<f:facet name="header">
						<h:outputText value="#{kullanicibundle.lbl_durumu}" />
					</f:facet>
					<h:outputText
						value="#{DonemIslemleri.getDurumBitisTarihKontrol(donem)}" />
				</p:column-->

				<!-- p:column style="width:120px;text-align: center">
					<p:commandButton value="Güncelle"
						action="#{kullaniciBean.updateAction()}"
						update=":bodyForm:bilgiGirisPanel">
						<f:setPropertyActionListener value="#{kullanici}"
							target="#{kullaniciBean.selectedKullanici}" />
					</p:commandButton>
				</p:column>
				<p:column style="width:60px;text-align: center">
					<p:commandButton value="Sil"
						action="#{kullaniciBean.deleteAction()}"
						update=":bodyForm:datalistPanel">
						<f:setPropertyActionListener value="#{kullanici}"
							target="#{kullaniciBean.selectedKullanici}" />
					</p:commandButton>
				</p:column-->

				<!-- ->p:column style="width:25px;text-align: center">
					<p:commandLink action="#{taleplerimBean.updateAction()}"
						update=":bodyForm:bilgiGirisPanel">
						<p:graphicImage value="/resources/images/icons/pencil.png" />
						<f:setPropertyActionListener value="#{talep}"
							target="#{taleplerimBean.selectedTalep}" />
					</p:commandLink>
				</p:column>
				<p:column style="width:25px;text-align: center">
					<p:commandLink action="#{taleplerimBean.deleteAction()}" update="@form">
						<p:graphicImage value="/resources/images/icons/cross.png" />
						<f:setPropertyActionListener value="#{talep}"
							target="#{taleplerimBean.selectedTalep}" />
					</p:commandLink>
				</p:column-->

			</p:dataTable>
		</p:panel>

	</ui:define>
</ui:composition>
</html>
